package 曾世昌12_19.demo6;

import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;

public class demo {
    public static void main(String[] args) throws InvocationTargetException, IllegalAccessException {
        demo01();
    }

    public static void demo01() throws InvocationTargetException, IllegalAccessException {
        HashMap<String, String[]> map = new HashMap<>();
        map.put( "loginName", new String[]{"曾世昌"} );
        map.put( "password", new String[]{"888888"} );
        map.put( "sex", new String[]{"男"} );
        map.put( "edu", new String[]{"本科"} );
        map.put( "hobby", new String[]{"读书", "打篮球", "音乐"} );
        User user = new User();
        MyBeanUtils.populate( user, map );

    }
}
